# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

add_subdirectory(serialize)
set(SRC
    languageunit.cpp
    type_info.cpp
    descriptor/layout/dense_tensor_layout.cpp
    descriptor/layout/tensor_layout.cpp
    descriptor/tensor.cpp
    code_writer.cpp
    type/bfloat16.cpp
    type/element_type.cpp
    type/data_buffer.cpp
    type/type_protocal.cpp
    shape.cpp
    partial_shape.cpp
    axis_set.cpp
    axis_vector.cpp
    dimension.cpp
    strides.cpp
    util.cpp
    coordinate.cpp
    coordinate_diff.cpp
    device_type.cpp
)

add_library(nnfusion_common STATIC ${SRC})
target_include_directories(nnfusion_common SYSTEM PUBLIC
    ${GLOBAL_INCLUDE_PATH}
)